﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AspNetCs.Common;
using AspNetCs.Bll;
using AspNetCs.IDAL;
using AspNetCs.DALFactory;
using AspNetCs.Model;
public partial class AjaxXml_SaleNumber_Is : System.Web.UI.Page
{
    protected SaleNumber Sale = new SaleNumber();
    protected SaleNumber_Model model = new SaleNumber_Model();

    int channelID = -1;
    string SaleNum = "";
    protected void Page_Load(object sender, EventArgs e)
    {

      
        if (!string.IsNullOrEmpty(Request["Types"]))
        {
            channelID = StringHelper.isNumber_int(Request["Types"].ToString());
        }
        if (!string.IsNullOrEmpty(Request["SaleNum"]))
        {
            SaleNum = Request["SaleNum"].ToString();
        }
       // Response.Write(channelID + "<br>" + SaleNum);
       // Response.End();
        //Respddd

        if (SaleNum == "" || channelID == -1)
        {
            Response.Write(0);
            Response.End();
        }

        model.SaleType = channelID;
        model.Number = SaleNum;
        Response.Write(Sale.NumberIsTrue(model));




    }
}
